package com.naiterui.ehp.bs.cms.modules.wms.vo;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.naiterui.ehp.bs.cms.common.json.Dict;

import lombok.Data;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Data
@ApiModel(description = "商品列表")
public class ProductVO implements java.io.Serializable {

    private static final long serialVersionUID = 7772303564250171556L;

    @ApiModelProperty(value = "商品id")
    private Long id;

    @ApiModelProperty(value = "商品编码")
    private String number;

    @Dict(type = "product_type")
    @ApiModelProperty(value = "商品种类 1:药品 2:保健品，如果使用文字，则使用typeDescribe 字段")
    private Long type;

    @ApiModelProperty(value = "药理分类ID")
    private Long classificationId;

    @ApiModelProperty(value = "药理分类名称")
    private String classificationName;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "通用名")
    private String commonName;

    @ApiModelProperty(value = " 安全分类，1：处方药；2：otc，如果使用文字，则使用nmpaTypeDescribe 字段")
    @Dict(type = "product_nmpa_type")
    private Integer nmpaType;

    @ApiModelProperty(value = "批准文号/注册码")
    private String approvalNumber;

    @ApiModelProperty(value = "生产企业")
    private String productionEnterprise;

    @ApiModelProperty(value = "是否关联SKU  0：未关联，1：关联")
    private Integer relationSku;

    @ApiModelProperty(value = "资料完整  0：不完整，1：完整")
    private Integer dataIntegrity;

    @ApiModelProperty(value = "建码时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;
}
